package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.common.core.page.TableDataInfo;
import com.zzyl.nursing.domain.Reservation;
import com.zzyl.nursing.dto.PageReservationDto;
import com.zzyl.nursing.dto.ReservationDto;
import com.zzyl.nursing.vo.TimeSlotCountVo;

import java.util.List;

public interface IMemberReservationService extends IService<Reservation> {
    /**
     * 新增预约
     * @param reservationDto
     */
    void insert(ReservationDto reservationDto);

    /**
     * 分页查询预约
     * @param pageReservationDto
     * @return
     */
    TableDataInfo<Reservation> pageReservation(PageReservationDto pageReservationDto);

    /**
     * 查询当天取消次数
     * @return
     */
    Integer countToday();

    /**
     * 取消预约
     * @param id
     */

    void cancel(Integer id);

    /**
     * 查询每个时间段剩余预约的次数
     * @return
     */

    List<TimeSlotCountVo> countByTime();
}
